package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.Year;
import java.util.Date;

public class Ledger extends BaseEntity {
    /** 社区ID */
    @Excel(name = "社区ID")
    private Long companyId;
    private String companyName;
    private String Mouth;
    /** 社区ID */
    @Excel(name = "类型")
    private String type;
    /** 社区ID */
    @Excel(name = "社区ID")
    private Date firstTime;
    @JsonFormat(pattern = "YYYY")
    private Year time;
    private int state;
    /** 社区ID */
    @Excel(name = "开始时间-结束时间")
    private Date lastTime;
    private int isYser;

    public String getCompanyName() {
        return companyName;
    }

    public String getMouth() {
        return Mouth;
    }

    public void setMouth(String mouth) {
        Mouth = mouth;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getIsYser() {
        return isYser;
    }

    public void setIsYser(int isYser) {
        this.isYser = isYser;
    }

    public Year getTime() {
        return time;
    }

    public void setTime(Year time) {
        this.time = time;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getFirstTime() {
        return firstTime;
    }

    public void setFirstTime(Date firstTime) {
        this.firstTime = firstTime;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    @Override
    public String toString() {
        return "Ledger{" +
                "companyId=" + companyId +
                ", type='" + type + '\'' +
                ", firstTime=" + firstTime +
                ", lastTime=" + lastTime +
                '}';
    }
}
